package root.action;

import com.alibaba.fastjson.JSONObject;
import com.jfinal.aop.Before;
import com.jfinal.plugin.activerecord.Page;
import com.jfinal.plugin.activerecord.Record;
import org.apache.commons.collections.map.HashedMap;
import root.Interceptor.UserInterceptor;
import root.service.SystemService;
import root.utils.DesUtils;
import root.utils.StringHelper;
import root.utils.WebConstants;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 系统管理
 *
 * @author 吕梁山
 * @date 2018/09/26
 */
@Before(UserInterceptor.class)
public class SystemAction extends BaseAction {

    public void index() {
        JSONObject jsonObject = new JSONObject();

        renderJson(jsonObject);
    }

    public void upload() {
        if ("config".equals(getPara("action"))) {
            render("/admin/assets/plugins/ueditor/jsp/config.json");
        } else {
            render("/admin/assets/plugins/ueditor/jsp/controller.jsp");
        }

    }
}
